package OOP.day07;

public class StudentTest {
    public static void main(String[] args) {
        //有参构造
        Student student1 = new Student("张三", 18, "1922", "计算机1922");
        System.out.println("student1 = " + student1);
        student1.study();

        System.out.println("--------------------------------------------------------------------------");

        //无参构造
        Student student = new Student();
        System.out.println("student = " + student);
        student.name = "李四";
        student.age = 20;
        student.studentId = "1922";
        student.className = "计算机1922";
        student.study();
        student.sayHi();
        student.printId();
        student.playWith("老六");
    }
}
